import './index.css'
import { StrictMode } from 'react'
import { createRoot } from 'react-dom/client'
import App from './App.tsx'
import '@ant-design/v5-patch-for-react-19'
import { PersistGate } from 'redux-persist/integration/react'
import store, { persistor } from './store/index.ts'
import { Provider } from 'react-redux'
import zh_CN from 'antd/es/locale/zh_CN'
import ConfigProvider from 'antd/es/config-provider'

createRoot(document.getElementById('root')!).render(
  <StrictMode>
    <Provider store={store}>
      <ConfigProvider locale={zh_CN}>
        <PersistGate loading={null} persistor={persistor}>
          <App />
        </PersistGate>
      </ConfigProvider>
    </Provider>
  </StrictMode>
)
